.code{
    .code-content{
        &-head{
            display: flex;
            justify-content: flex-start;
            margin: var(--tiklab-padding-item) 0;
            .code-head-right{
                display: flex;
                align-items: center;
                .code-search,.code-file-add{
                    margin-left: var(--tiklab-padding-item);
                    font-size: 16px;
                    cursor: pointer;
                    padding: 8px 0;
                }
                .code-desc,.code-clone{
                    margin-left: var(--tiklab-padding-item);

                }
            }
        }
        &-tables{
            .code-table-name,.code-table-msg{
                &:hover{
                    cursor: pointer;
                    text-decoration: underline;
                }
            }
            .code-data-item{
                display: flex;
                flex-direction: row;
                align-items: center;
                padding: 8px;
                &:first-child{
                    border-bottom: 1px solid #f0f0f0;
                }
                &:nth-child(2){
                    cursor: pointer;
                }
                &:not(:first-child):hover{
                    background: #f8f8f8;
                }

                .code-item-fileName{
                    width: 60%;
                    display: flex;
                    align-items: center;
                    gap: 20px;
                    .code-item-fileName-text:hover{
                        cursor: pointer;
                        text-decoration: underline;
                    }

                    .code-item-fileName-fls{
                        border:1px solid #cccccc;
                        padding: 0 7px;
                        color: #cccccc;
                        border-radius:4px
                    }
                }
                .code-item-commitMessage{
                    width: 30%;
                    padding: 0 var(--tiklab-padding-item);
                }
                .code-item-commitTime{
                    width: 10%;
                }
                .code-item-fileName-text,.code-item-commitMessage,.code-item-commitTime{
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    -o-text-overflow: ellipsis;
                }
            }
        }
    }
}

.file-add-menu{
    box-shadow: 0 4px 8px -2px #091e4240, 0 0 1px #091e424f;
    border-radius: 4px;
    background-color: #ffffff;
    width: 120px;
    .file-add-item{
        cursor: pointer;
        padding: 10px;
        &:hover{
            background: #f4f4f4;
        }
        &:first-child{
            border-radius: 4px 4px 0 0;
        }
        &:last-child{
            border-radius: 0 0 4px 4px;
        }
    }
}
.clone-menu{
    box-shadow: 0 4px 8px -2px #091e4240, 0 0 1px #091e424f;
    border-radius: 4px;
    background-color: #ffffff;
    width: 350px;
    .clone-item{
        padding: 0 var(--tiklab-padding-item);
        .clone-item-title{
            padding: 10px 0;
        }
        &:last-child{
            margin-bottom: 10px;
        }
    }
    .clone-download{
        display: flex;
        align-items: center;
        margin-top: var(--tiklab-padding-item);
        border-top: 1px solid #d9d9d9;
        .clone-item-download{
            flex: 1;
            text-align: center;
            height: 40px;
            line-height: 40px;
            cursor: pointer;
            &:hover{
                background-color: #f4f4f4;
            }
        }
    }
}

.not-disabled{
    cursor: not-allowed;
    color: #999999;
}
